import "dotenv/config";
import { readFileByType } from "../utils/util";
import { processToken } from "./utils/processToken";
import { refreshToken } from "./utils/refreshToken";
import { showMoney } from "./utils/showMoney";

(async () => {
  const refresh_token = readFileByType("iep_refresh_token")
  const res = await refreshToken(refresh_token);
  if (res) {
    const token = processToken(res);
    await showMoney(token)
  }
})()